package org.ioflow.events
{
	import flash.events.Event;
	
	import org.ioflow.IOflow;

	public final class ConnectionFailEvent extends Event
	{
		public static const TYPE:String = "org.ioflow.events.ConnectionFailEvent.TYPE";
		
		private var m_client:IOflow;
		private var m_reason:String;
		
		
		public function ConnectionFailEvent(Client:IOflow, Reason:String)
		{
			super(TYPE);
			m_client = Client;
			m_reason = Reason;
		}
		
		public function get client():IOflow
		{
			return m_client;
		}
		
		public function get reason():String
		{
			return m_reason;
		}
		
		override public function clone():Event
		{
			return new ConnectionFailEvent(m_client, m_reason);
		}
	}
}